wt002 commited on
Commit
81bbafd
·
verified ·
1 Parent(s): ad7890b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -30
app.py CHANGED
@@ -82,36 +82,6 @@ class BasicAgent:
82
  except Exception as e:
83
  return f"An unexpected error occurred: {str(e)}"
84
 
85
- # Example usage
86
- if __name__ == "__main__":
87
- agent = BasicAgent()
88
-
89
- # Test queries
90
- test_queries = [
91
- "What is Python programming?",
92
- "Latest Python version",
93
- "How to learn machine learning"
94
- ]
95
-
96
- for query in test_queries:
97
- print("\n" + "="*50)
98
- print(f"Testing query: {query}")
99
- result = agent(query)
100
- print("\nSearch Result:")
101
- print(result)
102
-
103
- # Interactive mode
104
- print("\n" + "="*50)
105
- print("Interactive mode (type 'quit' to exit)")
106
- while True:
107
- user_query = input("\nEnter your search query: ")
108
- if user_query.lower() == 'quit':
109
- break
110
- print("\n" + "="*50)
111
- result = agent(user_query)
112
- print("\nSearch Result:")
113
- print(result)
114
-
115
 
116
 
117
  def run_and_submit_all( profile: gr.OAuthProfile | None):
 
82
  except Exception as e:
83
  return f"An unexpected error occurred: {str(e)}"
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
 
87
  def run_and_submit_all( profile: gr.OAuthProfile | None):