paopaoka3325 commited on
Commit
9a9831c
1 Parent(s): d8a5a74

Add application files

Browse files
Files changed (2) hide show
  1. .test_mcodehippa.py.swp +0 -0
  2. app.py +19 -2
.test_mcodehippa.py.swp ADDED
Binary file (12.3 kB). View file
 
app.py CHANGED
@@ -80,11 +80,28 @@ def greet(name1, name2):
80
 
81
  return html_output, csv_output
82
 
 
 
 
 
 
 
 
 
83
  input_boxes = [
84
- gr.inputs.Textbox(label="openai api key"),
85
- gr.inputs.Textbox(lines=20, label="Input cancer report", placeholder='Type text here...'),
86
  ]
87
 
 
 
 
 
 
 
 
 
 
88
  disclaimer = (
89
  "Please do not upload sensitive patient data. <br>"
90
  'If you need support, please contact us at '
 
80
 
81
  return html_output, csv_output
82
 
83
+ # input_boxes = [
84
+ # gr.inputs.Textbox(label="openai api key"),
85
+ # gr.inputs.Textbox(lines=20, label="Input cancer report", placeholder='Type text here...'),
86
+ # ]
87
+
88
+
89
+ from gradio import Textbox, Interface
90
+
91
  input_boxes = [
92
+ Textbox(label="openai api key"),
93
+ Textbox(lines=20, label="Input cancer report", placeholder='Type text here...'),
94
  ]
95
 
96
+ # Create the Gradio interface
97
+ iface = Interface(inputs=input_boxes)
98
+
99
+ # Add your model and inference logic here
100
+
101
+ iface.launch()
102
+
103
+
104
+
105
  disclaimer = (
106
  "Please do not upload sensitive patient data. <br>"
107
  'If you need support, please contact us at '