Spaces:
Running
Running
Update Gradio_UI.py
Browse files- Gradio_UI.py +8 -5
Gradio_UI.py
CHANGED
@@ -48,17 +48,20 @@ agent_footer = """
|
|
48 |
"""
|
49 |
|
50 |
def get_examples():
|
51 |
-
example_root = os.path.join(os.path.dirname(__file__), "examples")
|
52 |
# Get list of all example text paths
|
53 |
-
example_files = [os.path.join(example_root, _) for _ in os.listdir(example_root) if _.endswith("txt")]
|
54 |
|
55 |
|
56 |
# Read the content of each file (assuming they're text-based PDFs or plain text files)
|
57 |
examples = []
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
61 |
|
|
|
|
|
62 |
return examples
|
63 |
|
64 |
def pull_messages_from_step(
|
|
|
48 |
"""
|
49 |
|
50 |
def get_examples():
|
51 |
+
#example_root = os.path.join(os.path.dirname(__file__), "examples")
|
52 |
# Get list of all example text paths
|
53 |
+
#example_files = [os.path.join(example_root, _) for _ in os.listdir(example_root) if _.endswith("txt")]
|
54 |
|
55 |
|
56 |
# Read the content of each file (assuming they're text-based PDFs or plain text files)
|
57 |
examples = []
|
58 |
+
|
59 |
+
#for file_path in example_files:
|
60 |
+
# with open(file_path, "r", encoding="utf-8", errors="ignore") as f:
|
61 |
+
# examples.append(f.read()) # Read the content and append it to the list
|
62 |
|
63 |
+
examples.append("test")
|
64 |
+
|
65 |
return examples
|
66 |
|
67 |
def pull_messages_from_step(
|