Spaces:
Sleeping
Sleeping
Update gradio_app.py
Browse files- gradio_app.py +1 -1
gradio_app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
-
|
4 |
def predict(message, history):
|
5 |
# API request to FastAPI backend
|
6 |
response = requests.post("http://0.0.0.0:8000/chat", json={"message": message, "history": history})
|
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
+
import logging
|
4 |
def predict(message, history):
|
5 |
# API request to FastAPI backend
|
6 |
response = requests.post("http://0.0.0.0:8000/chat", json={"message": message, "history": history})
|