Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import requests
|
|
2 |
import gradio as gr
|
3 |
|
4 |
def generate(message, _=None):
|
5 |
-
url = "https://p-bot-
|
6 |
headers = {"Content-Type": "application/json"}
|
7 |
data = {"text": message}
|
8 |
response = requests.post(url, json=data, headers=headers)
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
def generate(message, _=None):
|
5 |
+
url = "https://p-bot-okfe.onrender.com/ask"
|
6 |
headers = {"Content-Type": "application/json"}
|
7 |
data = {"text": message}
|
8 |
response = requests.post(url, json=data, headers=headers)
|