Spaces:
Runtime error
Runtime error
orderlymirror
commited on
Commit
•
24c237f
1
Parent(s):
958cc51
Update app.py
Browse files
app.py
CHANGED
@@ -40,4 +40,11 @@ chain = load_qa_chain(OpenAI(), chain_type="stuff")
|
|
40 |
|
41 |
query = "“Can you give me an example from history where the enemy was crushed totallyfrom the book?"
|
42 |
docs = docsearch.similarity_search(query)
|
43 |
-
chain.run(input_documents=docs, question=query)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
query = "“Can you give me an example from history where the enemy was crushed totallyfrom the book?"
|
42 |
docs = docsearch.similarity_search(query)
|
43 |
+
chain.run(input_documents=docs, question=query)
|
44 |
+
|
45 |
+
|
46 |
+
def greet():
|
47 |
+
return "Hello"
|
48 |
+
|
49 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
50 |
+
iface.launch()
|