Spaces:
Runtime error
Runtime error
Download app.py from Karthick1002/Final_Assignment_Template: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/spaces/Karthick1002/Final_Assignment_Template/resolve/main/app.py
- Command line
-
hf download hf://spaces/Karthick1002/Final_Assignment_Template/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Karthick1002/Final_Assignment_Template/resolve/main/app.py
408 Bytes
| import gradio as gr | |
| from agent import agent # Import your refactored agent | |
| from Gradio_UI import GradioUI | |
| # Optional: Uncomment to test agent endpoint separately | |
| # def run_agent(question): | |
| # try: | |
| # result = agent(question) | |
| # return [str(result)] | |
| # except Exception as e: | |
| # return [f"Error: {e}"] | |
| if __name__ == "__main__": | |
| GradioUI(agent).launch(debug=True, share=True) |