Spaces:
Build error
Build error
Update main.py
Browse files
main.py
CHANGED
@@ -15,7 +15,7 @@ app.add_middleware(
|
|
15 |
# Define a route for the prediction using FastAPI
|
16 |
@app.post("/predict")
|
17 |
async def predict(text: str):
|
18 |
-
client = Client("https://randomshit11-randomshit11-fin-bert-1st-shit.hf.space/--replicas/
|
19 |
result = client.predict(
|
20 |
"shorten", # str in 'Mode' Radio component
|
21 |
text, # str in 'text' Textbox component
|
|
|
15 |
# Define a route for the prediction using FastAPI
|
16 |
@app.post("/predict")
|
17 |
async def predict(text: str):
|
18 |
+
client = Client("https://randomshit11-randomshit11-fin-bert-1st-shit.hf.space/--replicas/ug7tu/")
|
19 |
result = client.predict(
|
20 |
"shorten", # str in 'Mode' Radio component
|
21 |
text, # str in 'text' Textbox component
|