Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,9 +7,9 @@ import os
|
|
| 7 |
HF_TOKEN = os.getenv("HF_TOKEN") # Replace with your actual token if not using an environment variable
|
| 8 |
|
| 9 |
# Initialize the Gradio Client for the specified API
|
| 10 |
-
client = Client("mangoesai/
|
| 11 |
|
| 12 |
-
client_name = ['2016 Election','2024 Election', 'Comparison two years']
|
| 13 |
|
| 14 |
|
| 15 |
|
|
@@ -100,6 +100,7 @@ with gr.Blocks(title="Reddit Election Analysis") as demo:
|
|
| 100 |
|
| 101 |
if __name__ == "__main__":
|
| 102 |
demo.launch(share=True)
|
|
|
|
| 103 |
|
| 104 |
|
| 105 |
|
|
|
|
| 7 |
HF_TOKEN = os.getenv("HF_TOKEN") # Replace with your actual token if not using an environment variable
|
| 8 |
|
| 9 |
# Initialize the Gradio Client for the specified API
|
| 10 |
+
client = Client("mangoesai/Elections_Comparison_Agent_V4", hf_token=HF_TOKEN)
|
| 11 |
|
| 12 |
+
# client_name = ['2016 Election','2024 Election', 'Comparison two years']
|
| 13 |
|
| 14 |
|
| 15 |
|
|
|
|
| 100 |
|
| 101 |
if __name__ == "__main__":
|
| 102 |
demo.launch(share=True)
|
| 103 |
+
demo.launch(share_erro=True)
|
| 104 |
|
| 105 |
|
| 106 |
|