Skip to content

AIFame/aiwiki

Repository files navigation

Streamlit Wikipedia Search

This is a simple Streamlit application that allows you to search for information on Wikipedia. It uses the Langchain library to interact with the Wikipedia API.

Installation

  1. Clone the repository:
git clone https://github.com/your-username/your-repository.git
  1. Install the required dependencies using pip:
pip install streamlit langchain
  1. Create a virtual environment (optional but recommended):
python -m venv myenv
source myenv/bin/activate
  1. Run the application:
streamlit run app.py

Usage

  1. Once the application is running, you will see a text input field with the label "Prompt>>>".

  2. Enter a search query or topic you want to search on Wikipedia.

  3. Press Enter or click outside the input field to trigger the search.

  4. The application will retrieve the Wikipedia page's summary for the provided query and display it below the input field.

Libraries Used

  • Streamlit: A Python library for building interactive web applications.
  • Langchain: A library for interacting with language-related APIs, including Wikipedia.

Demonstration

Once u have followed these instructions u will see a window like this: img.png

Modified version test : img_1.png

The final window setup:

img_2.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published