Nikhil0987 commited on
Commit
711df83
·
verified ·
1 Parent(s): 3280ea5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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