Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def get_user_ip():
|
|
| 22 |
except:
|
| 23 |
return None
|
| 24 |
|
| 25 |
-
def ContractDraftGPT(user_input, user_name, user_email, user_agent, is_fintech_startup, region):
|
| 26 |
messages = []
|
| 27 |
|
| 28 |
if not user_name:
|
|
@@ -52,7 +52,6 @@ def ContractDraftGPT(user_input, user_name, user_email, user_agent, is_fintech_s
|
|
| 52 |
interaction_patterns = "" # Track user interface interaction patterns
|
| 53 |
success_of_advice = "" # Measure success of advice
|
| 54 |
user_satisfaction_rate = "" # Measure user satisfaction rate
|
| 55 |
-
user_location = region # Capture user location
|
| 56 |
industry_or_profession = "" # Capture user industry or profession
|
| 57 |
|
| 58 |
fintech_status = "Yes" if is_fintech_startup == "Yes" else "No"
|
|
@@ -106,7 +105,8 @@ def launch_interface():
|
|
| 106 |
gradio.inputs.Textbox(label="Your Name", placeholder="Enter your name"),
|
| 107 |
gradio.inputs.Textbox(label="Your Email", placeholder="Enter your email"),
|
| 108 |
gradio.inputs.Radio(label="Are you a fintech startup?", choices=["Yes", "No"]),
|
| 109 |
-
gradio.inputs.Radio(label="Select your region:", choices=["England", "Scotland", "Wales", "Northern Ireland"])
|
|
|
|
| 110 |
]
|
| 111 |
outputs = gradio.outputs.Textbox(label="Contract Draft")
|
| 112 |
|
|
@@ -114,4 +114,4 @@ def launch_interface():
|
|
| 114 |
interface.launch()
|
| 115 |
|
| 116 |
if __name__ == "__main__":
|
| 117 |
-
launch_interface()
|
|
|
|
| 22 |
except:
|
| 23 |
return None
|
| 24 |
|
| 25 |
+
def ContractDraftGPT(user_input, user_name, user_email, user_agent, is_fintech_startup, region, user_location):
|
| 26 |
messages = []
|
| 27 |
|
| 28 |
if not user_name:
|
|
|
|
| 52 |
interaction_patterns = "" # Track user interface interaction patterns
|
| 53 |
success_of_advice = "" # Measure success of advice
|
| 54 |
user_satisfaction_rate = "" # Measure user satisfaction rate
|
|
|
|
| 55 |
industry_or_profession = "" # Capture user industry or profession
|
| 56 |
|
| 57 |
fintech_status = "Yes" if is_fintech_startup == "Yes" else "No"
|
|
|
|
| 105 |
gradio.inputs.Textbox(label="Your Name", placeholder="Enter your name"),
|
| 106 |
gradio.inputs.Textbox(label="Your Email", placeholder="Enter your email"),
|
| 107 |
gradio.inputs.Radio(label="Are you a fintech startup?", choices=["Yes", "No"]),
|
| 108 |
+
gradio.inputs.Radio(label="Select your region:", choices=["England", "Scotland", "Wales", "Northern Ireland"]),
|
| 109 |
+
gradio.inputs.Radio(label="Select your location:", choices=["England", "Scotland", "Wales", "Northern Ireland"])
|
| 110 |
]
|
| 111 |
outputs = gradio.outputs.Textbox(label="Contract Draft")
|
| 112 |
|
|
|
|
| 114 |
interface.launch()
|
| 115 |
|
| 116 |
if __name__ == "__main__":
|
| 117 |
+
launch_interface()
|