Spaces:
Build error
Build error
Commit
·
3c5263f
1
Parent(s):
20fd059
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import os
|
| 3 |
-
|
| 4 |
|
| 5 |
def main():
|
| 6 |
-
|
|
|
|
| 7 |
"TODO: ADD MORE..."))
|
| 8 |
-
|
|
|
|
| 9 |
openai_pdf()
|
| 10 |
|
| 11 |
if __name__ == '__main__':
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import os
|
| 3 |
+
from Chat_with_pdf_OpenAI import openai_pdf
|
| 4 |
|
| 5 |
def main():
|
| 6 |
+
st.header("Chat with your PDF")
|
| 7 |
+
LLM_model = st.selectbox("Select Model",("OpenAI",
|
| 8 |
"TODO: ADD MORE..."))
|
| 9 |
+
create = st.button("Selected Model")
|
| 10 |
+
if create and LLM_model == "OpenAI":
|
| 11 |
openai_pdf()
|
| 12 |
|
| 13 |
if __name__ == '__main__':
|