tommy24 commited on
Commit
7739b08
·
1 Parent(s): da6d75b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -32,14 +32,12 @@ import gradio as gr
32
 
33
  url = "https://api.writesonic.com/v2/business/content/chatsonic?engine=premium"
34
 
35
- def main():
36
- user = input("Enter the prompt: ")
37
-
38
  payload = {
39
  "enable_google_results": True,
40
  "enable_memory": False,
41
  "history_data": [{"name": "Dawn"}],
42
- "input_text": user
43
  }
44
  headers = {
45
  "accept": "application/json",
 
32
 
33
  url = "https://api.writesonic.com/v2/business/content/chatsonic?engine=premium"
34
 
35
+ def main(prompt):
 
 
36
  payload = {
37
  "enable_google_results": True,
38
  "enable_memory": False,
39
  "history_data": [{"name": "Dawn"}],
40
+ "input_text": prompt
41
  }
42
  headers = {
43
  "accept": "application/json",