Spaces:
Runtime error
Runtime error
GPU-deployment
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import requests
|
3 |
|
4 |
def predict(msg, chat_history):
|
5 |
-
ret = requests.post(url=f"http://
|
6 |
chat_history.append((msg, ret.text))
|
7 |
return "", chat_history
|
8 |
|
|
|
2 |
import requests
|
3 |
|
4 |
def predict(msg, chat_history):
|
5 |
+
ret = requests.post(url=f"http://172.190.71.39:80/predict", json={"msg": msg})
|
6 |
chat_history.append((msg, ret.text))
|
7 |
return "", chat_history
|
8 |
|