runaksh commited on
Commit
61d5c4d
·
1 Parent(s): ef3d330

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -18
app.py CHANGED
@@ -44,27 +44,10 @@ iface_1 = gradio.Interface(fn = predict_sentiment,
44
  title = title_1,
45
  description = description_1)
46
 
47
- title_2 = "Symptoms and Disease"
48
- description_2 = "Enter the Symptoms to know the disease"
49
-
50
- # Input from user
51
- in_prompt_2 = gradio.components.Textbox(lines=2, label='Enter the Symptoms')
52
-
53
- # Output response
54
- out_response_2 = gradio.components.Textbox(label='Disease')
55
-
56
- # Gradio interface to generate UI link
57
- iface_2 = gradio.Interface(fn=predict,
58
- inputs = [in_prompt_2],
59
- outputs = [out_response_2],
60
- title=title_2,
61
- description=description_2
62
- )
63
 
64
  iface = gradio.Interface(
65
  [
66
- iface_1,
67
- iface_2
68
  ],
69
  title="Multiple Models Interface",
70
  description="This interface showcases multiple models"
 
44
  title = title_1,
45
  description = description_1)
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
  iface = gradio.Interface(
49
  [
50
+ iface_1
 
51
  ],
52
  title="Multiple Models Interface",
53
  description="This interface showcases multiple models"