Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import os
|
|
| 2 |
import nest_asyncio
|
| 3 |
nest_asyncio.apply()
|
| 4 |
import streamlit as st
|
| 5 |
-
from transformers import pipeline
|
| 6 |
from huggingface_hub import login
|
| 7 |
from streamlit.components.v1 import html
|
| 8 |
import pandas as pd
|
|
@@ -294,7 +294,7 @@ def main():
|
|
| 294 |
st.error(f"Gemma processing failed: {str(error)}")
|
| 295 |
report = "Error generating report. Please try again with fewer tweets."
|
| 296 |
else:
|
| 297 |
-
report = raw_result
|
| 298 |
# report = extract_assistant_response(raw_result)
|
| 299 |
clear_gpu_memory()
|
| 300 |
progress_bar.progress(100)
|
|
|
|
| 2 |
import nest_asyncio
|
| 3 |
nest_asyncio.apply()
|
| 4 |
import streamlit as st
|
| 5 |
+
from transformers import pipeline
|
| 6 |
from huggingface_hub import login
|
| 7 |
from streamlit.components.v1 import html
|
| 8 |
import pandas as pd
|
|
|
|
| 294 |
st.error(f"Gemma processing failed: {str(error)}")
|
| 295 |
report = "Error generating report. Please try again with fewer tweets."
|
| 296 |
else:
|
| 297 |
+
report = extract_assistant_response(raw_result)
|
| 298 |
# report = extract_assistant_response(raw_result)
|
| 299 |
clear_gpu_memory()
|
| 300 |
progress_bar.progress(100)
|