Spaces:
Runtime error
Runtime error
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -142,14 +142,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 142 |
| LLM | Zephyr-7B via Inference API |
|
| 143 |
| Chunking | 1000 chars, 200 overlap |
|
| 144 |
|
| 145 |
-
### ⚠️ Development Challenges Documented
|
| 146 |
-
|
| 147 |
-
This project encountered several technical challenges:
|
| 148 |
-
- **LangChain API changes**: Package restructuring required updated imports
|
| 149 |
-
- **PDF parsing issues**: Required proper HTTP headers for downloads
|
| 150 |
-
- **LLM response quality**: FLAN-T5 produced short responses; switched to Zephyr-7B
|
| 151 |
-
- **Memory management**: Required explicit GPU cleanup between model loads
|
| 152 |
-
|
| 153 |
Built by [Nav772](https://huggingface.co/Nav772) as part of AI Engineering portfolio.
|
| 154 |
""")
|
| 155 |
|
|
@@ -166,4 +158,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 166 |
outputs=[answer_output, sources_output]
|
| 167 |
)
|
| 168 |
|
| 169 |
-
demo.launch()
|
|
|
|
| 142 |
| LLM | Zephyr-7B via Inference API |
|
| 143 |
| Chunking | 1000 chars, 200 overlap |
|
| 144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
Built by [Nav772](https://huggingface.co/Nav772) as part of AI Engineering portfolio.
|
| 146 |
""")
|
| 147 |
|
|
|
|
| 158 |
outputs=[answer_output, sources_output]
|
| 159 |
)
|
| 160 |
|
| 161 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|