Spaces:
Runtime error
Runtime error
Asif Islam
commited on
Commit
•
60d5851
1
Parent(s):
c0ba8cc
Initial context
Browse files- .gitignore +1 -0
- __pycache__/constants.cpython-311.pyc +0 -0
- app.py +2 -2
- data/800-Codes-Amended-in-Summer-2023.pdf +0 -0
- flagged/log.csv +2 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
constants.py
|
__pycache__/constants.cpython-311.pyc
ADDED
Binary file (226 Bytes). View file
|
|
app.py
CHANGED
@@ -53,6 +53,6 @@ async def getQuery(query: str):
|
|
53 |
query = None
|
54 |
return result['answer']
|
55 |
|
56 |
-
demo = gr.Interface(fn=getQuery, inputs="text", outputs="text")
|
57 |
|
58 |
-
demo.launch()
|
|
|
53 |
query = None
|
54 |
return result['answer']
|
55 |
|
56 |
+
demo = gr.Interface(fn=getQuery, inputs="text", outputs="text", title="800 Codes AI Chat Bot", flagging_options=(['Incorrect', 'Great Response']))
|
57 |
|
58 |
+
demo.launch(share=True)
|
data/800-Codes-Amended-in-Summer-2023.pdf
ADDED
Binary file (418 kB). View file
|
|
flagged/log.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
query,output,flag,username,timestamp
|
2 |
+
Tell me about student org travel,"Student org travel requires prior written approval from the Student Body Treasurer and the Student Government Finance Manager. All travel authorization forms must be submitted and approved by the student organization President and Treasurer on the online activity request system at least ten business days before the trip. If prior written approval is not granted, the Student Government cannot be held responsible for any costs incurred on the trip. Exceptions to the submission timeline may be made in extreme circumstances, but require a letter of justification signed by the organizational president or treasurer and the approval of the Student Body Treasurer.",Great Response,,2023-08-18 15:14:59.713209
|