Skip to content

Commit 72aebfd

Browse files
authored
Add a minimal user interface for developer.
auto-sync-2024-06-18-21-04-23
2 parents 6649139 + b42ad98 commit 72aebfd

13 files changed

Lines changed: 1016 additions & 20 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,4 @@ Please cite our paper if you use this code or part of it in your work:
255255
year={2024},
256256
booktitle={Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)}
257257
}
258-
```
258+
```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[client]
2+
showErrorDetails = false
3+
toolbarMode = "minimal"
4+
5+
[theme]
6+
primaryColor = "#F63366"
7+
backgroundColor = "#FFFFFF"
8+
secondaryBackgroundColor = "#F0F2F6"
9+
textColor = "#262730"
10+
font = "sans serif"

frontend/demo_light/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# STORM Minimal User Interface
2+
3+
This is a minimal user interface for `STORMWikiRunner` which includes the following features:
4+
1. Allowing user to create a new article through the "Create New Article" page.
5+
2. Showing the intermediate steps of STORMWikiRunner in real-time when creating an article.
6+
3. Displaying the written article and references side by side.
7+
4. Allowing user to view previously created articles through the "My Articles" page.
8+
9+
<p align="center">
10+
<img src="assets/create_article.jpg" style="width: 70%; height: auto;">
11+
</p>
12+
13+
<p align="center">
14+
<img src="assets/article_display.jpg" style="width: 70%; height: auto;">
15+
</p>
16+
17+
## Setup
18+
1. Besides the required packages for `STORMWikiRunner`, you need to install additional packages:
19+
```bash
20+
pip install -r requirements.txt
21+
```
22+
2. Make sure you set up the API keys following the instructions in the main README file. Create a copy of `secrets.toml` and place it under `.streamlit/`.
23+
3. Run the following command to start the user interface:
24+
```bash
25+
streamlit run storm.py
26+
```
27+
The user interface will create a `DEMO_WORKING_DIR` directory in the current directory to store the outputs.
28+
29+
## Customization
30+
31+
You can customize the `STORMWikiRunner` powering the user interface according to [the guidelines](https://github.com/stanford-oval/storm?tab=readme-ov-file#customize-storm) in the main README file.
32+
33+
The `STORMWikiRunner` is initialized in `set_storm_runner()` in [demo_util.py](demo_util.py). You can change `STORMWikiRunnerArguments`, `STORMWikiLMConfigs`, or use a different retrieval model according to your need.
298 KB
Loading
136 KB
Loading
631 Bytes
Loading

0 commit comments

Comments
 (0)