randomshit11 commited on
Commit
3b5bbf7
·
verified ·
1 Parent(s): d752104

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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/c76d7/")
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