summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorRaju Komati <komatiraju032@gmail.com>2023-04-29 11:25:24 +0200
committerRaju Komati <komatiraju032@gmail.com>2023-04-29 11:25:24 +0200
commit54b4c789a75fec5c3a92a03dfd2d93d051309651 (patch)
tree813a7dd223e9f7df3b1708fc65a58ccc87684ba6 /gui
parentUpdate README.md (diff)
downloadgpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar
gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar.gz
gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar.bz2
gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar.lz
gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar.xz
gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar.zst
gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.zip
Diffstat (limited to 'gui')
-rw-r--r--gui/query_methods.py4
-rw-r--r--gui/streamlit_app.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/gui/query_methods.py b/gui/query_methods.py
index 1a4a3402..adb4ae91 100644
--- a/gui/query_methods.py
+++ b/gui/query_methods.py
@@ -3,7 +3,7 @@ import sys
sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir))
-import forefront, quora, theb, you
+from gpt4free import quora, forefront, theb, you
import random
@@ -15,7 +15,7 @@ def query_forefront(question: str) -> str:
response = ""
# get a response
try:
- for i in forefront.StreamingCompletion.create(token = token, prompt = 'hello world', model='gpt-4'):
+ for i in forefront.StreamingCompletion.create(token = token, prompt ='hello world', model='gpt-4'):
response += i.completion.choices[0].text
return response
diff --git a/gui/streamlit_app.py b/gui/streamlit_app.py
index 8a6bcfa9..2dba0a7b 100644
--- a/gui/streamlit_app.py
+++ b/gui/streamlit_app.py
@@ -4,7 +4,7 @@ import sys
sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir))
import streamlit as st
-import you
+from gpt4free import you
def get_answer(question: str) -> str: