mgokg commited on
Commit
90592bd
·
verified ·
1 Parent(s): e12f54f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -6,6 +6,18 @@ from gradio_client import Client
6
  from IPython.display import display
7
  from IPython.display import Markdown
8
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  def routing(message):
10
  client = Client("mgokg/SemanticRouting")
11
  result = client.predict(
@@ -56,7 +68,8 @@ def process_file(file):
56
  with gr.Blocks() as demo:
57
  gr.Markdown("### File upload", elem_classes="tab-header")
58
  with gr.Row():
59
- text_output = gr.Textbox(label="output")
 
60
  with gr.Row():
61
  file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
62
  with gr.Row():
 
6
  from IPython.display import display
7
  from IPython.display import Markdown
8
 
9
+ custom_css = """
10
+ #md {
11
+ height: 450px;
12
+ font-size: 35px;
13
+ background: black;
14
+ padding: 20px;
15
+ padding-top: 40px;
16
+ color: white;
17
+ border: 1 px solid #383838;
18
+ }
19
+ """
20
+
21
  def routing(message):
22
  client = Client("mgokg/SemanticRouting")
23
  result = client.predict(
 
68
  with gr.Blocks() as demo:
69
  gr.Markdown("### File upload", elem_classes="tab-header")
70
  with gr.Row():
71
+ text_output = gr.Markdown(label="Antwort", elem_id="md", value="# PR")
72
+ #text_output = gr.Textbox(label="output")
73
  with gr.Row():
74
  file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
75
  with gr.Row():