Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
import requests
|
| 3 |
|
| 4 |
# Your ngrok URL (ensure it is correct)
|
| 5 |
-
API_URL = "https://
|
| 6 |
|
| 7 |
def chat(image, text):
|
| 8 |
"""Call the local LLaVA server API"""
|
|
@@ -31,4 +31,4 @@ iface = gr.Interface(
|
|
| 31 |
)
|
| 32 |
|
| 33 |
# Launch Gradio
|
| 34 |
-
iface.launch(server_name="0.0.0.0", server_port=
|
|
|
|
| 2 |
import requests
|
| 3 |
|
| 4 |
# Your ngrok URL (ensure it is correct)
|
| 5 |
+
API_URL = "https://36b83bc0ff0b.ngrok-free.app/predict/"
|
| 6 |
|
| 7 |
def chat(image, text):
|
| 8 |
"""Call the local LLaVA server API"""
|
|
|
|
| 31 |
)
|
| 32 |
|
| 33 |
# Launch Gradio
|
| 34 |
+
iface.launch(server_name="0.0.0.0", server_port=7861)
|