Omnibus commited on
Commit
489d2fc
1 Parent(s): bc5a121

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -70,11 +70,12 @@ def details_fn(query):
70
  print (e)
71
  file = open("myfile.txt", "w")
72
  file.close()
73
-
 
74
  #with open("myfile.txt", "r") as file1:
75
  # html_out = file1.read()
76
  #out = format_t(html_out)
77
- return title
78
 
79
  def first():
80
  out = '''<h1>Loading'''
@@ -149,8 +150,9 @@ with gr.Blocks() as app:
149
  with gr.Row():
150
  input = gr.Textbox(label = "URL")
151
  btn = gr.Button("Preview")
152
- output = gr.HTML("""""")
153
  details = gr.HTML("""""")
 
 
154
 
155
  search_btn.click(search_fn,[search_box,num_return],output)
156
  btn.click(first,None,output).then(test,input,output).then(details_fn,input,details)
 
70
  print (e)
71
  file = open("myfile.txt", "w")
72
  file.close()
73
+ out = f"""
74
+ <center>{title}<br>{description['content']}</center>"""
75
  #with open("myfile.txt", "r") as file1:
76
  # html_out = file1.read()
77
  #out = format_t(html_out)
78
+ return out
79
 
80
  def first():
81
  out = '''<h1>Loading'''
 
150
  with gr.Row():
151
  input = gr.Textbox(label = "URL")
152
  btn = gr.Button("Preview")
 
153
  details = gr.HTML("""""")
154
+ output = gr.HTML("""""")
155
+
156
 
157
  search_btn.click(search_fn,[search_box,num_return],output)
158
  btn.click(first,None,output).then(test,input,output).then(details_fn,input,details)