jeremierostan
commited on
Commit
•
066fef8
1
Parent(s):
8237f9b
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,10 @@ import gradio as gr
|
|
3 |
from anthropic import Anthropic
|
4 |
from pypdf import PdfReader
|
5 |
|
|
|
|
|
|
|
|
|
6 |
# Add the path to your desired knowledge base
|
7 |
reference_document = "The Learning Cycle.pdf"
|
8 |
reader = PdfReader(reference_document)
|
@@ -83,4 +87,4 @@ iface = gr.ChatInterface(
|
|
83 |
clear_btn="Clear",
|
84 |
)
|
85 |
|
86 |
-
iface.launch(
|
|
|
3 |
from anthropic import Anthropic
|
4 |
from pypdf import PdfReader
|
5 |
|
6 |
+
# Set up username and password
|
7 |
+
username = "Username"
|
8 |
+
password = "Password"
|
9 |
+
|
10 |
# Add the path to your desired knowledge base
|
11 |
reference_document = "The Learning Cycle.pdf"
|
12 |
reader = PdfReader(reference_document)
|
|
|
87 |
clear_btn="Clear",
|
88 |
)
|
89 |
|
90 |
+
iface.launch(auth=(username, password))
|