paopaoka3325 commited on
Commit
4b99f46
·
1 Parent(s): 7814a7f

Add application files

Browse files
Files changed (1) hide show
  1. app.py +2 -12
app.py CHANGED
@@ -51,13 +51,6 @@ def greet(name1, name2):
51
  # Output the extracted text
52
  output
53
  '''
54
- data = {
55
- "Name": [name, name, name],
56
- "Age": [30, 25, 35],
57
- "City": ["New York", "San Francisco", "Los Angeles"]
58
- }
59
-
60
-
61
 
62
 
63
  #### output_string1, error_string1=run_command("poetry")# ontogpt")
@@ -68,10 +61,7 @@ def greet(name1, name2):
68
  # return f"Inputs received: {str1} \n, {str2}, {str3}, {str4}, '--------------', '--------------', {output_string1},{error_string1},{output_string2},{error_string2},{output}"
69
  # # return location
70
  # For the purpose of this example, I'm just returning the values concatenated
71
- # return f"{str4_input}"
72
-
73
- return pd.DataFrame(data)
74
-
75
 
76
  # Define 5 text input boxes with labels
77
  input_boxes = [
@@ -79,6 +69,6 @@ input_boxes = [
79
  gr.inputs.Textbox(lines=20,label="Input cencer report"),
80
  ]
81
 
82
- iface = gr.Interface(fn=greet, inputs=input_boxes, outputs=gr.outputs.Table(label="Output Table"))
83
  iface.launch()
84
 
 
51
  # Output the extracted text
52
  output
53
  '''
 
 
 
 
 
 
 
54
 
55
 
56
  #### output_string1, error_string1=run_command("poetry")# ontogpt")
 
61
  # return f"Inputs received: {str1} \n, {str2}, {str3}, {str4}, '--------------', '--------------', {output_string1},{error_string1},{output_string2},{error_string2},{output}"
62
  # # return location
63
  # For the purpose of this example, I'm just returning the values concatenated
64
+ return f"{str4_input}"
 
 
 
65
 
66
  # Define 5 text input boxes with labels
67
  input_boxes = [
 
69
  gr.inputs.Textbox(lines=20,label="Input cencer report"),
70
  ]
71
 
72
+ iface = gr.Interface(fn=greet, inputs=input_boxes, outputs="text")
73
  iface.launch()
74