Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ import pandas as pd
|
|
23 |
from llama_index import SimpleDirectoryReader, GPTListIndex, readers, GPTSimpleVectorIndex, LLMPredictor, PromptHelper
|
24 |
from langchain import OpenAI
|
25 |
from IPython.display import Markdown, display
|
26 |
-
import streamlit as st
|
27 |
import gradio as gr
|
28 |
#import gradio
|
29 |
df = pd.read_excel('Shegardi_dataset.xlsx',sheet_name = 'dataset')
|
@@ -65,9 +65,8 @@ def ask_ai(query):
|
|
65 |
|
66 |
iface = gr.Interface(fn=ask_ai, inputs="text", outputs="text", title="The following is a conversation with a human called Shegardi. Shegardi is helpful, precise, truthful, and very friendly. Also, Shegardi is an employee of Warba Bank, located in Kuwait. Shegardi will only use the information provided to him. ",
|
67 |
description="Enter a question and get an answer from Shegardi.")
|
68 |
-
iface.launch()
|
69 |
-
|
70 |
|
|
|
71 |
|
72 |
|
73 |
|
|
|
23 |
from llama_index import SimpleDirectoryReader, GPTListIndex, readers, GPTSimpleVectorIndex, LLMPredictor, PromptHelper
|
24 |
from langchain import OpenAI
|
25 |
from IPython.display import Markdown, display
|
26 |
+
#import streamlit as st
|
27 |
import gradio as gr
|
28 |
#import gradio
|
29 |
df = pd.read_excel('Shegardi_dataset.xlsx',sheet_name = 'dataset')
|
|
|
65 |
|
66 |
iface = gr.Interface(fn=ask_ai, inputs="text", outputs="text", title="The following is a conversation with a human called Shegardi. Shegardi is helpful, precise, truthful, and very friendly. Also, Shegardi is an employee of Warba Bank, located in Kuwait. Shegardi will only use the information provided to him. ",
|
67 |
description="Enter a question and get an answer from Shegardi.")
|
|
|
|
|
68 |
|
69 |
+
iface.launch()
|
70 |
|
71 |
|
72 |
|