arjunanand13 commited on
Commit
658bb1c
·
verified ·
1 Parent(s): 78284d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -101,7 +101,7 @@ def qa_infer_interface(property_choice, query_question):
101
  property_choice = user_choices[0]
102
  property_row = [row for row in data if row[1] == property_choice][0] # Find the row corresponding to the selected property
103
  if not query_question:
104
- query_question = "Area size of the property"
105
  retries = 3
106
  while retries > 0:
107
  try:
@@ -120,7 +120,7 @@ user_dropdown=gr.Dropdown(choices=[], label="Property Choice",info="List of all
120
  properties_text=gr.components.Textbox(lines=2,label="User Database Query",placeholder="Click on an query from 'examples' below or write your own query based on the database above. Default : 'Properties in India'")
121
  interface_1_output=gr.Json(label="json")
122
  stage2_examples=[["","Structure of the property "],[ ""," Property History "] ,["", " How many floors does the property have"]]
123
- stage2_text=gr.components.Textbox(lines=2,label="Question on property",placeholder="Enter a question to know more about the properties , you can choose from one of the options below or write a own question Default: 'Area size of the property'",)
124
  stage2_output="text"
125
 
126
  with gr.Blocks(title="House Excel Query") as demo:
 
101
  property_choice = user_choices[0]
102
  property_row = [row for row in data if row[1] == property_choice][0] # Find the row corresponding to the selected property
103
  if not query_question:
104
+ query_question = "Area of the property"
105
  retries = 3
106
  while retries > 0:
107
  try:
 
120
  properties_text=gr.components.Textbox(lines=2,label="User Database Query",placeholder="Click on an query from 'examples' below or write your own query based on the database above. Default : 'Properties in India'")
121
  interface_1_output=gr.Json(label="json")
122
  stage2_examples=[["","Structure of the property "],[ ""," Property History "] ,["", " How many floors does the property have"]]
123
+ stage2_text=gr.components.Textbox(lines=2,label="Question on property",placeholder="Enter a question to know more about the properties , you can choose from one of the options below or write a own question Default: 'Area of the property'",)
124
  stage2_output="text"
125
 
126
  with gr.Blocks(title="House Excel Query") as demo: