Spaces:
Build error
Build error
randomshit11
commited on
Commit
·
cafdff9
1
Parent(s):
c21e120
Update main.py
Browse files
main.py
CHANGED
@@ -15,8 +15,6 @@ app.add_middleware(
|
|
15 |
# Define a route for the prediction using FastAPI
|
16 |
@app.post("/predict")
|
17 |
async def predict(text: str , min_length: int , max_length: int ):
|
18 |
-
from gradio_client import Client
|
19 |
-
|
20 |
client = Client("https://randomshit11-randomshit11-fin-bert-1st-shit.hf.space/--replicas/7cc9645sr2l/")
|
21 |
result = client.predict(
|
22 |
"shorten", # str in 'Mode' Radio component
|
|
|
15 |
# Define a route for the prediction using FastAPI
|
16 |
@app.post("/predict")
|
17 |
async def predict(text: str , min_length: int , max_length: int ):
|
|
|
|
|
18 |
client = Client("https://randomshit11-randomshit11-fin-bert-1st-shit.hf.space/--replicas/7cc9645sr2l/")
|
19 |
result = client.predict(
|
20 |
"shorten", # str in 'Mode' Radio component
|