Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -147,6 +147,12 @@ import streamlit as st
|
|
147 |
|
148 |
# demo.launch(server_port=7861)
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
def render_first(pdf_file):
|
151 |
# ... Logic to process the PDF (extract text, create summary, etc.)
|
152 |
# ... Generate a simple image as a placeholder
|
|
|
147 |
|
148 |
# demo.launch(server_port=7861)
|
149 |
|
150 |
+
def add_text(history, text):
|
151 |
+
if not text:
|
152 |
+
raise gr.Error('Enter text')
|
153 |
+
history = history + [(text, '')]
|
154 |
+
return history
|
155 |
+
|
156 |
def render_first(pdf_file):
|
157 |
# ... Logic to process the PDF (extract text, create summary, etc.)
|
158 |
# ... Generate a simple image as a placeholder
|