abhicodes commited on
Commit
7bd4a64
1 Parent(s): 6210ba7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -78,7 +78,7 @@ with gr.Blocks(theme=theme) as Alzheimer:
78
  "content": "Your role is Alzheimer Disease Expert. Now I will provide you with the user query. First check if the user query is related to Alzheimer or not. If it is not related to Alzheimer then do not reply the query whereas if related to Alzheimer reply it as usual. Here's the user Query:" + message}],
79
  )
80
  time.sleep(1)
81
- yield str(bot_message)
82
 
83
 
84
  with gr.Column():
@@ -108,7 +108,7 @@ with gr.Blocks(theme=theme) as BreastCancer:
108
  "content": "Your role is Breast Cancer Disease Expert. Now I will provide you with the user query. First check if the user query is related to Breast Cancer or not. If it is not related to Breast Cancer then do not reply the query whereas if related to Breast Cancer reply it as usual. Here's the user Query:" + message}],
109
  )
110
  time.sleep(1)
111
- yield str(bot_message)
112
 
113
  with gr.Column():
114
  gr.Markdown("# Health Bot for Breast Cancer")
@@ -137,7 +137,7 @@ with gr.Blocks(theme=theme) as BrainTumor:
137
  "content": "Your role is Brain Tumor Disease Expert. Now I will provide you with the user query. First check if the user query is related to Brain Tumor or not. If it is not related to Brain Tumor then do not reply the query whereas if related to Brain Tumor reply it as usual. Here's the user Query:" + message}],
138
  )
139
  time.sleep(1)
140
- yield str(bot_message)
141
 
142
  with gr.Column():
143
  gr.Markdown("# Health Bot for Brain Tumor")
 
78
  "content": "Your role is Alzheimer Disease Expert. Now I will provide you with the user query. First check if the user query is related to Alzheimer or not. If it is not related to Alzheimer then do not reply the query whereas if related to Alzheimer reply it as usual. Here's the user Query:" + message}],
79
  )
80
  time.sleep(1)
81
+ return str(bot_message)
82
 
83
 
84
  with gr.Column():
 
108
  "content": "Your role is Breast Cancer Disease Expert. Now I will provide you with the user query. First check if the user query is related to Breast Cancer or not. If it is not related to Breast Cancer then do not reply the query whereas if related to Breast Cancer reply it as usual. Here's the user Query:" + message}],
109
  )
110
  time.sleep(1)
111
+ return str(bot_message)
112
 
113
  with gr.Column():
114
  gr.Markdown("# Health Bot for Breast Cancer")
 
137
  "content": "Your role is Brain Tumor Disease Expert. Now I will provide you with the user query. First check if the user query is related to Brain Tumor or not. If it is not related to Brain Tumor then do not reply the query whereas if related to Brain Tumor reply it as usual. Here's the user Query:" + message}],
138
  )
139
  time.sleep(1)
140
+ return str(bot_message)
141
 
142
  with gr.Column():
143
  gr.Markdown("# Health Bot for Brain Tumor")