frankai98 commited on
Commit
fc29cdc
·
verified ·
1 Parent(s): 57ec7d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, AutoTokenizer
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[0]['generated_text']
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)