Spaces:
Sleeping
Sleeping
abhlash
commited on
Commit
·
95ea5ae
1
Parent(s):
cabe7b9
updated the server addredd
Browse files- frontend.py +1 -1
frontend.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
| 3 |
|
| 4 |
-
API_URL = "http://
|
| 5 |
|
| 6 |
def sign_up(username, password):
|
| 7 |
response = requests.post(f"{API_URL}/signup", json={"username": username, "password": password})
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
| 3 |
|
| 4 |
+
API_URL = "http://0.0.0.0:8000" # URL of your FastAPI backend
|
| 5 |
|
| 6 |
def sign_up(username, password):
|
| 7 |
response = requests.post(f"{API_URL}/signup", json={"username": username, "password": password})
|