Spaces:
Runtime error
Runtime error
Update gradio_llm_example.py
Browse files- gradio_llm_example.py +1 -3
gradio_llm_example.py
CHANGED
@@ -84,7 +84,6 @@ def read_content(file_name):
|
|
84 |
try:
|
85 |
content = file.read()
|
86 |
print(content)
|
87 |
-
print(codecs.decode(content, 'utf-8'))
|
88 |
return {error_box: gr.Textbox(value=f"File ready to be used. \n You can ask a question about the uploaded PDF document.", visible=True)}
|
89 |
except Exception as e:
|
90 |
print(f"Error occurred while writing the file: {e}")
|
@@ -158,5 +157,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as gradioApp:
|
|
158 |
|
159 |
gr.close_all()
|
160 |
gradioApp.launch(share=True, enable_queue=True, auth=("neovision", "gradio2023"))
|
161 |
-
|
162 |
-
|
|
|
84 |
try:
|
85 |
content = file.read()
|
86 |
print(content)
|
|
|
87 |
return {error_box: gr.Textbox(value=f"File ready to be used. \n You can ask a question about the uploaded PDF document.", visible=True)}
|
88 |
except Exception as e:
|
89 |
print(f"Error occurred while writing the file: {e}")
|
|
|
157 |
|
158 |
gr.close_all()
|
159 |
gradioApp.launch(share=True, enable_queue=True, auth=("neovision", "gradio2023"))
|
160 |
+
#auth=("neovision", "gradio2023")
|
|