Update main.py
Browse files
main.py
CHANGED
|
@@ -14,6 +14,7 @@ async def summarize_file_with_gradio(file_content: str) -> Dict[str, str]:
|
|
| 14 |
response = await client.post(f"{gradio_api_url}/predict", json={"file_content": file_content})
|
| 15 |
if response.status_code == 200:
|
| 16 |
result = response.json()
|
|
|
|
| 17 |
return {"summary": result[0]}
|
| 18 |
else:
|
| 19 |
return {"error": "Gradio API request failed"}
|
|
|
|
| 14 |
response = await client.post(f"{gradio_api_url}/predict", json={"file_content": file_content})
|
| 15 |
if response.status_code == 200:
|
| 16 |
result = response.json()
|
| 17 |
+
print(result)
|
| 18 |
return {"summary": result[0]}
|
| 19 |
else:
|
| 20 |
return {"error": "Gradio API request failed"}
|