CineAI commited on
Commit
92fc311
1 Parent(s): 0fc8ed4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -19,7 +19,6 @@ from utils.prompt_toggle import select_prompt, load_prompts
19
  from utils.image_caption import ImageCaption
20
  from utils.documentation import html_content
21
  from utils.payment import html_doge_wallet
22
- from utils.statement_evaluation_command import get_response
23
 
24
  prompts = load_prompts()
25
  chat = Conversation()
@@ -54,14 +53,7 @@ def switching(text):
54
  elif re.search("show me documentation", text.lower(), re.IGNORECASE):
55
  components.html(html_content, height=800, scrolling=True)
56
  elif re.search("pay the ghost", text.lower(), re.IGNORECASE):
57
- components.html(html_doge_wallet, height=600, scrolling=False)
58
- # elif re.search("long live liberty", text.lower(), re.IGNORECASE):
59
- # exctracted_statement = exctrator(text.lower(), phrase="long live liberty")
60
- # cleaned_sentence = re.sub(r'^\W+', '', exctracted_statement)
61
- # print(f"exctracted_statement: {cleaned_sentence}")
62
- # prompt = f"Evaluate how far the statement from libertarian ideology 1 to 10 and why?\n\n{cleaned_sentence}"
63
- # print(f"Liberty prompt: {prompt}")
64
- # result = get_response(prompt)
65
  else:
66
  prompt = select_prompt(input_text=text, prompts=prompts, keywords=keywords)
67
  result = chat.chatting(prompt=prompt if prompt is not None else text)
 
19
  from utils.image_caption import ImageCaption
20
  from utils.documentation import html_content
21
  from utils.payment import html_doge_wallet
 
22
 
23
  prompts = load_prompts()
24
  chat = Conversation()
 
53
  elif re.search("show me documentation", text.lower(), re.IGNORECASE):
54
  components.html(html_content, height=800, scrolling=True)
55
  elif re.search("pay the ghost", text.lower(), re.IGNORECASE):
56
+ components.html(html_doge_wallet, height=600, scrolling=False)
 
 
 
 
 
 
 
57
  else:
58
  prompt = select_prompt(input_text=text, prompts=prompts, keywords=keywords)
59
  result = chat.chatting(prompt=prompt if prompt is not None else text)