maxidl commited on
Commit
90b71c6
·
1 Parent(s): 5a3fe42
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -200,13 +200,19 @@ def generate(paper_text, review_template):
200
 
201
 
202
  # ui
 
 
 
 
 
 
 
203
  title = "# Placeholder Title"
204
- steps = """Placeholder Description"""
205
- # steps = """1. Converts uploaded pdf file to markdown. You can edit the intermediate markdown output.\n2. Generates a review for the paper"""
206
 
207
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
208
- title = gr.Markdown(title,)
209
- steps = gr.Markdown(steps)
210
  instr = gr.Markdown("## Upload your paper in pdf format")
211
  file_input = gr.File(file_types=[".pdf"], file_count="single")
212
  paper_text_field= gr.Textbox(label="Paper Text", max_lines=20, autoscroll=False)
 
200
 
201
 
202
  # ui
203
+ css = """
204
+ #warning {background: red;}
205
+
206
+ .title {background-color: #8C1B13; color: white;}
207
+ """
208
+ #4D8093
209
+
210
  title = "# Placeholder Title"
211
+ description = """Placeholder Description"""
 
212
 
213
+ with gr.Blocks(theme=gr.themes.Default()) as demo:
214
+ title = gr.Markdown(title, elem_class="title")
215
+ description = gr.Markdown(description)
216
  instr = gr.Markdown("## Upload your paper in pdf format")
217
  file_input = gr.File(file_types=[".pdf"], file_count="single")
218
  paper_text_field= gr.Textbox(label="Paper Text", max_lines=20, autoscroll=False)